//
//  JMenu.h
//  SpreadButton
//
//  Created by mysj on 16/6/30.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^selected)(NSInteger indx);

@class JMenu;
@protocol JmenuDelegate <NSObject>

- (void)jmenu:(JMenu *)item didSelectAtIndex:(NSInteger)index;

@end

@interface JMenu : UIButton

@property (nonatomic, weak) id <JmenuDelegate> delegate;

@property (nonatomic, copy) NSArray *imgNames;

+ (instancetype)menuImg:(NSArray *)imgNames Selected:(selected)selected;

- (void)buttonClick;

@end
